package com.hs.hoj.questionsevice.controller;
import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.hs.hoj.hojserviceclient.service.UserFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 题目管路接口
 *
 */
@RestController
@Slf4j
@RefreshScope
public class QuestionController {

    @Resource
    private UserFeignClient userFeignClient;
    @Value("${h1.name}")
    private String name;

    @GetMapping("/get")
    public String apollo(){
        return name+"*";
    }

    //@Value("${bbb}")
    private String bbb;

    @GetMapping("/test")
    public String TestMy01(){
        // log.info("server------------aaa-----"+age);
        log.info("server------------bbb-----"+bbb);
        // String test = userFeignClient.getTest();
        // return test;
        return "123";
    }



}
